package com.mbc.mapper;


import com.mbc.dto.InserTLoveBaseActivityDTO;
import com.mbc.dto.MbcAnimalShelterDTO;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;

@Mapper
public interface SignMapper {

    /**
     * 新增动物收容所地址
     *
     * @param signId              签名 ID
     * @param mbcAnimalShelterDTO MBC 动物收容所 DTO
     * @return {@link Integer}
     */
    @Insert("insert into mbc_sign(sign_id, name, latitude, longitude, category, address) values (#{signId}," +
            "#{mbcAnimalShelterDTO.signName},#{mbcAnimalShelterDTO.latitude}," +
            "#{mbcAnimalShelterDTO.longitude},#{mbcAnimalShelterDTO.category},#{mbcAnimalShelterDTO.address})")
    Integer insertAnimalShelterSign(String signId, MbcAnimalShelterDTO mbcAnimalShelterDTO);

    /**
     * 新增爱心基地活动的地址
     *
     * @param signId                    签名 ID
     * @param inserTLoveBaseActivityDTO inser tlove base 活动 DTO
     * @return {@link Integer}
     */
    Integer insertLoveActivitySign(String signId, InserTLoveBaseActivityDTO inserTLoveBaseActivityDTO);
}
